#!/usr/bin/env python3
# coding: utf-8
"""
2024-02-04 harrydeep@wardyan.top dao
"""
from wdb.model.wmodel import *

class BaseDAO :
    """
    DAO基类
    """
    def __init__(self, model : Model) :
        pass

    def save(self, model : Model) -> bool :
        """
        保存实体
        """
        pass

    def update(self, model : Model) -> bool :
        """
        更新实体
        """
        pass

    def delete(self, model : Model) -> bool :
        pass

    def find(self, sql : str) :
        pass

    def list(self, sql : str) :
        """
        根据SQL列出返回结果
        """
        pass

    def count(self, sql : str) :
        pass
